<?php
/*
 * 首页
 * */
namespace app\home\controller\user;

use app\common\model\UserMemberModel;
use app\common\model\UserModel;
use think\Request;

class IndexController extends BaseController
{
    private $userInfo;
    public function __construct(Request $request = null)
    {
        parent::__construct($request);
        $userModel=new UserModel();
        $this->userInfo=$userModel->getUserInfo($this->getMemberUid());
        $this->assign('user_info',$this->userInfo);
    }

    public function tpl()
    {
        return $this->fetch();
    }
    public function index()
    {
        return $this->fetch();
    }
    public function test()
    {
        return $this->fetch();
    }

}